package com.xintonghua.hongyi.adapter;

import android.app.Activity;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.xintonghua.base.adapter.BaseAdapter;
import com.xintonghua.hongyi.R;
import com.xintonghua.hongyi.bean.ShareBean;

import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * 作者：wanxianyi
 * 时间：2018/1/10.
 * 包名：com.xintonghua.hongyi.adapter
 */

public class ShareAdapter extends BaseAdapter<ShareBean, RecyclerView.ViewHolder> {


    public ShareAdapter(Activity mActivity, List<ShareBean> list) {
        super(mActivity, list);
    }

    @Override
    public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = inflater.inflate(R.layout.adapter_share, parent, false);
        return new ShareHolder(view);
    }

    @Override
    public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {

    }

    @Override
    public int getItemCount() {
        return 5;
    }

    class ShareHolder extends RecyclerView.ViewHolder {
        @BindView(R.id.tv_share_name)
        TextView tvShareName;
        @BindView(R.id.tv_share_phone)
        TextView tvSharePhone;
        @BindView(R.id.tv_share_score)
        TextView tvShareScore;

        public ShareHolder(View itemView) {
            super(itemView);
            ButterKnife.bind(this, itemView);
        }

    }
}
